import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
  ],
  server: {
    port: 8080,
    open: true,
    cors: true,
    proxy: {
      '/app': {
        target: 'http://localhost:10085',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/app/, '/app'),
        secure: false
      }
    }
  }
})
